package com.zhiyou.app.shop.website.service;

import java.math.BigDecimal;
import java.util.List;

import com.zhiyou.app.shop.common.util.Page;
import com.zhiyou.app.shop.website.dao.pojo.StockType;
import com.zhiyou.app.shop.website.dao.pojo.UserStock;
import com.zhiyou.app.shop.website.dao.pojo.UserStockInfo;

public interface IUserStockService {

	long buyStock(String userId,float money);
	//复盘购买
	void buy();
	
	/**
	 * @param type =1  旧股
	 * 		  type =2  新股
	 */
	Long findUserStock(String account, String type);
	BigDecimal findUserStockValue(String account);
	
	void findUserStock(Page page);
	
	public List<UserStock> getByStockType(String stockType);
	
	public void callback(String userids,String stockType,float per);
	
	int saveStockSome(String account);
	
	public List<UserStock> getByUserid(String userid);
	
	public UserStock findById(Integer id);
	
	public void save(UserStock us);
	
	void save(UserStock us,UserStockInfo usi);
}
